package com.gavindon.plugin

import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.extra

/**
 * description:
 * Created by liNan on  2021/7/23 14:58
 */
class LibDepPlugin : Plugin<Project> {

    private lateinit var project: Project
    override fun apply(project: Project) {
        this.project = project
        createExtensions()
    }

    private fun createExtensions() {
        val extension = project.extensions.create("hello", LibDepExtension::class.java)
        print(extension.message)
    }
}